package com.shop.cloud.model.request;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * @author Alex
 */
@ToString(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handler", "fieldHandler" }, ignoreUnknown = true)
public class EditUserInfoRequest {

	public static final int TYPE_HEAD_PORTRAIT = 1;	// 头像
    public static final int TYPE_NICKNAME = 2;		// 用户昵称
    public static final int TYPE_LEVEL = 3;			// 级别
    public static final int TYPE_STORE = 4;			// 所属门店
	
    @JsonProperty("id")
	@ApiModelProperty(value = "用户id", example = "", required = true)
	private Long id;

    @JsonProperty("type")
	@ApiModelProperty(value = "修改类型。1头像，2用户昵称，3级别，4所属门店", example = "", required = true)
	private int type;

    @JsonProperty("value")
	@ApiModelProperty(value = "新值。type＝3，4时传相应的id值", example = "", required = true)
	private String value;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

}
